package cn.kogee.service.impl;

import cn.kogee.domian.Store;
import cn.kogee.mapper.StoreMapper;
import cn.kogee.service.IStoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StoreServiceImpl implements IStoreService {
    @Autowired
    private StoreMapper storeMapper;
    @Override
    public void add(Store store) {
        storeMapper.save(store);
    }

    @Override
    public Store findById(Long id) {
        return storeMapper.loadById(id);
    }

    @Override
    public void update(Store store) {
        storeMapper.update(store);
    }

    @Override
    public Store loadByProId(Long id) {
        return storeMapper.loadByProId(id);
    }
}
